{% include 'basic_app/search_ajax.html' %}
<table class="table table-striped table-bordered table-hover">
    <thead>
    <tr>
        <th>数据库</th>
        <th>连接串</th>
        <th>任务类型 _ 格式</th>
        <th>任务模式</th>
        <th>快照区间</th>
        <th>时间区间</th>
        <th>查看报告内容</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody id="tabbody">
    {% for i in current_page %}
        <tr>
            {#                        <td><input type="checkbox"/></td>#}
            <td style="display:none">{{ i.id }}</td>
            <td>{{ i.dbinfo }}</td>
            <td>{{ i.conn_str }}</td>
            <td>{{ i.report_type }}_{{ i.report_format }}</td>
            <td>{{ i.inst_type|default_if_none:"" }}</td>
            <td>{{ i.snapshot_range|default_if_none:"" }}</td>
            <td>{{ i.date_range }}</td>
            <td>
                <a style="cursor:pointer" href="/oratk_app/oratk_most_get_awr_ash_report_ajax?nid={{ i.id }}"
                   target="_blank">查看报告内容</a>
            </td>
            <td>{{ i.crtime }}</td>
            <td><a onclick="if(confirm('确认删除吗？')==false)return false; else oratk_awr_ash_report_delete({{ i.id }})" >删除</a><span> | </span><a>下载</a></td>
        </tr>
    {% endfor %}
    </tbody>
</table>
{#分页#}
{% include 'basic_app/paginator_common_ajax.html' %}